<template>
  <div class="dropdown-picker" @click="handleClick">
    <div class="lottery-name">
      <slot name="title"></slot>
    </div>
    <div class="arrow-down">
      <slot name="icon"></slot>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    handleClick() {
      this.$emit('click')
    }
  }
}
</script>

<style lang="stylus" scoped>
  @import '~@/assets/styles/variables.styl'
  .dropdown-picker 
    height 24px 
    box-sizing border-box 
    border-radius 3px 
    border 1px solid $color-theme-dark 
    display flex
    align-items center
    .lottery-name 
      text-align center
      padding 0 10px
    .arrow-down 
      width 24px 
      line-height 24px
      text-align center
      .icon 
        .iconfont 
          font-size 12px
          color $color-theme-dark
    
      

</style>